﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
  public   class OrdersBUS
    {

      OrdersDAO db = new OrdersDAO();
        public List<Order> GetListAll()
        {
            return db.GetListAll();
        }
        public List<Order> GetListAll_Status()
        {
            return db.GetListAll_Status();
        }
        public List<Order> GetListAll_Sort()
        {
            return db.GetListAll_Sort();
        }
        public List<Order> GetListAll_Sort_User(int userid)
        {
            return db.GetListAll_Sort_User(userid);
        }
        public List<Order> GetListTop5()
        {
            return db.GetListTop5();
        }
        public Order GetById(int id)
        {
            return db.GetById(id);
        }

        public List<Order> GetListSearch(string tukhoa)
        {
            return db.GetListSearch(tukhoa);
        }

        public bool Insert(Order c)
        {
            return db.Insert(c);
        }

        public bool Edit(Order ca)
        {
            return db.Edit(ca);
        }

        public bool Delete(int id)
        {
            return db.Delete(id);
        } 
    }
}
